package mobi.hami.huapin.service.impl;

import mobi.hami.huapin.dao.ProductShowAttributeMapper;
import mobi.hami.huapin.model.ProductShowAttribute;
import mobi.hami.huapin.service.ProductShowAttributeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductShowAttributeServiceImpl implements ProductShowAttributeService {
    @Autowired
    private ProductShowAttributeMapper productShowAttributeMapper;

    @Override
    public int insertList(List<ProductShowAttribute> models) {
        return productShowAttributeMapper.insertList(models);
    }

    @Override
    public int deleteAll(Integer spuid) {

        return productShowAttributeMapper.deleteAll(spuid);
    }

    @Override
    public List<ProductShowAttribute> selectProductAll(int spuid) {

        return productShowAttributeMapper.selectProductAll(spuid);
    }
}
